<?php

namespace Sharks\Core\LifeCycle;

/**
 * 从$_REQUEST中取Action的方法参数值
 */
class RequestParamResolver extends ActionParamResolver {

    function resolve($paramName, $paramType) {
        if ($paramType == null && isset($_REQUEST[$paramName])) {
            return $_REQUEST[$paramName];
        }
        return null;
    }
}